<!DOCTYPE html>
<html>
<head>
  <title>TestApp</title>
  <%= stylesheet_link_tag 'jquery-ui-1.8.16.custom.css', 'application.css', 'admin.css', 'jquery.multiselect.css' %>
  <%= javascript_include_tag  "jquery.js" %>
  <%= javascript_include_tag  "jquery-ui-1.8.16.custom.min.js" %>
  <%= javascript_include_tag  "jquery.multiselect.js" %>  
  <%= javascript_include_tag "jquery-rails.js" %>  
  <%= javascript_include_tag "autocomplete-rails.js" %>
  <%= javascript_include_tag "application.js" %>
  <%= csrf_meta_tag %>
</head>
<body>

<% flash.each do |name, msg| %>
  <%= content_tag :div, msg, :id => "flash_#{name}" %>
<% end %>

<div class = "adminContentArea">
	<div class = "adminContent">
		<div class = "adminContentLeft">
			<div class = "adminLogin">
				<% if current_admin %>
					Logged in as <%= current_admin.email %>.
					<%= link_to "Log out", admin_logout_path %>
				<% end %>
			</div>
			<div class = "adminMenu">
				<%= link_to "Unapproved requests", admin_unapproved_requests_path %><br />
				<%= link_to "Approved requests", admin_approved_requests_path %><br />
				<%= link_to "Create new supplier", admin_create_new_supplier_path %><br />
				<%= link_to "Create new ADMIN", admin_new_admin_path %><br />
			</div>
		</div>
		<div class = "adminContentMiddle">
			<%= yield %>
		</div>
	</div>
</div>

</body>
</html>
